package com.atguigu.inner.anymous;

public class TestFlyable2 {
    public static void main(String[] args) {
        Flyable f1 = new Flyable() {
            @Override
            public void fly() {
                System.out.println("我要飞的更高！");
            }
        };
        f1.fly();

        Flyable f2 = new Plane();
        f2.fly();
    }
}
